package github.remonlong.restfulutil.exception.api;


import github.remonlong.restfulutil.exception.BadException;
import github.remonlong.restfulutil.exception.enumeration.EnumResult;
import lombok.Getter;
import lombok.Setter;

/**
 * api restful 请求
 *
 * @author remon
 * @create 2018-06-07 16:45
 **/
public class BadApiException extends BadException {

    @Getter
    @Setter
    private EnumResult result;

    public BadApiException() {
        super();
    }

    public BadApiException(EnumResult result) {
        super(result.getMsg());
        this.result = result;
    }
}
